<form id="pagerForm" action="__ACTION__" method="post">
	<input type="hidden" name="pageNum" value="1"/>
	<input type="hidden" name="mes_type" value="{$mes_type}"/>
	<input type="hidden" name="keyword_title" value="{$keyword_title}"/>
	<input type="hidden" name="keyword_user" value="{$keyword_user}"/>
	<input type="hidden" name="keyword_tel" value="{$keyword_tel}"/>
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="__ACTION__" method="post">
	<div class="searchBar">
		<input type="hidden" name="mes_type" value="{$mes_type}" />
		<table class="searchContent">
			<tr>
				<td>
					{$Think.lang.GUEST_TITLE}：<input type="text" name="keyword_title" value="{$keyword_title}"/>
				</td>
				<td>
					{$Think.lang.GUEST_USER}：<input type="text" name="keyword_user"  value="{$keyword_user}"/>
				</td>
				<td>
					{$Think.lang.GUEST_TEL}：<input type="text" name="keyword_tel"  value="{$keyword_tel}"/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">{$Think.lang.UI_SEARCH}</button></div></div></li>
				
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="{:U('Guestbook/viewMessage?type=dialog')}?id={sid_user}" target="dialog"><span>{$Think.lang.UI_VIEW}</span></a></li>
			<li><a class="delete" href="{:U('Guestbook/deleteMessage?act=exec')}?id={sid_user}" target="ajaxTodo" title="{$Think.lang.Q_SURE_DELETE}"><span>{$Think.lang.UI_DELETE}</span></a></li>
			<li><a class="edit" href="{:U('Guestbook/auditMessage?act=exec')}?id={sid_user}" target="ajaxTodo" title="{$Think.lang.Q_SURE_CHANGE_AUDIT}"><span>{$Think.lang.UI_AUDIT}</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="40" align="center">ID</th>
				<th width="220" align="center">{$Think.lang.GUEST_TITLE}</th>
				<th width="90" align="center">{$Think.lang.GUEST_USER}</th>
				<th width="90" align="center">{$Think.lang.GUEST_EMAIL}</th>
				<th width="90" align="center">{$Think.lang.GUEST_TEL}</th>
				<th width="100" align="center">{$Think.lang.GUEST_LEAVE_TIME}</th>
				<th width="80" align="center">{$Think.lang.GUEST_STATUS}</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="ml">
				<tr target="sid_user" rel="{$ml.id}">
					<td>{$ml.id}</td>
					<td align="left"><a href="{:U('Guestbook/viewMessage?type=dialog' , array('id'=> $ml['id']))}" target="dialog" title="{$Think.lang.GUEST_MESSAGE}：{$ml.title}">{$ml.title}</a>
						<if condition="$ml['is_read'] == 0"><span style="margin: auto 10px; color:red; font-style:italic; font-weight:bold">New</span></if>
					</td>
					<td>{$ml.guest_user}</td>
					<td>{$ml.guest_email}</td>
					<td>{$ml.guest_tel}</td>
					<td>{$ml.leave_time}</td>
					<td>{$ml.is_read|readStatus}</td>
				</tr>
			</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>{$Think.lang.UI_SHOW}</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="{$Think.config.PAGE_NUM_ADMIN}">{$Think.config.PAGE_NUM_ADMIN}</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>{$Think.lang.UI_ITEM}，{$Think.lang.UI_SUM}{$totalCount}{$Think.lang.UI_ITEM}</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>
